package com.sinosoft.msf.base.supplier.pojo.entity;

import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.*;
import java.util.Date;

@Table(name = "s_msg_log")
public class SMsgLog {
    /**
     * 主键 id
     */
    @Id
    private String id;

    /**
     * 消息类型
     */
    @Column(name = "msg_cat")
    private String msgCat;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 接收人
     */
    private String receiver;

    /**
     * 发送状态
     */
    private String state;

    /**
     * 删除标记
     */
    private String deleted;

    /**
     * 创建人
     */
    @Column(name = "created_id")
    private String createdId;

    /**
     * 创建时间
     */
    @Column(name = "created_date")
    @ColumnType(jdbcType=JdbcType.TIMESTAMP)
    private Date createdDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMsgCat() {
        return msgCat;
    }

    public void setMsgCat(String msgCat) {
        this.msgCat = msgCat;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public String getCreatedId() {
        return createdId;
    }

    public void setCreatedId(String createdId) {
        this.createdId = createdId;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }
}